package com.cuntian.vo;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserVO {

    @NotNull(message = "用户id不能为空")
    private Long uid;
    @NotEmpty(message = "用户名不能为空")
    @Length(max = 20, message = "用户名不能大于20字符")
    private String userName;
    private String headImage;
    @Pattern(regexp= "^1[3-9]\\d{9}$" , message = "请输入有效的中国手机号码")
    private String phone;
    private String theme;
}
